package cn.sczhyt.modules.app.controller;

import cn.sczhyt.common.utils.R;
import cn.sczhyt.modules.szhy.entity.MeetingTopicsUserEntity;
import cn.sczhyt.modules.szhy.service.MeetingTopicsUserService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;


/**
 * 议题人员
 *
 * @author luojialin
 * @email 78357966@qq.com
 * @date 2021-05-18 10:39:50
 */
@Api(tags = "APP端议题人员")
@RestController
@RequestMapping("app/meetingtopicsuser")
public class AppMeetingTopicsUserController {
    @Autowired
    private MeetingTopicsUserService meetingTopicsUserService;

    /**
     * 列表
     */
    @ApiOperation("获取议题人员列表")
    @RequestMapping("/list/{topicsId}")
    public R list(@PathVariable("topicsId") String topicsId){
        QueryWrapper<MeetingTopicsUserEntity> queryWrapper = new QueryWrapper<>();
        List<MeetingTopicsUserEntity> list = meetingTopicsUserService.list(queryWrapper.eq("topics_id", topicsId));

        return R.ok().put("data", list);
    }

}
